﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.Entities
{
	public class ProjectInfo
	{
		public string ProjectSubPath { get; set; }
		public Guid ProjectId { get; set; }
		public string ProjectName { get; set; }

		public ProjectInfo() { }

		public ProjectInfo(string name, string subPath, string guidId)
		{
			ProjectName = name;
			ProjectSubPath = subPath;

			Guid Id;
			if (Guid.TryParse(guidId, out Id))
			{
				ProjectId = Id;
			}
		}

		public override string ToString()
		{
			return string.Format("{0}, {1}, {2}", ProjectName, ProjectSubPath, ProjectId.ToString());
		}
	}
}
